package com.wutuo.wtservice.provider.dao;

import com.wutuo.wtservice.api.request.ListServiceRequest;
import com.wutuo.wtservice.api.request.ServiceRequest;
import com.wutuo.wtservice.api.response.ServiceResponse;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 服务表 Dao 层
 *
 * @author lvh
 * @version 1.0
 */
public interface ServiceMapper extends BaseServiceMapper {

    @SelectProvider(type = ServiceSqlProvider.class, method = "lisForPage")
    @ResultType(value = ServiceResponse.class) List<ServiceResponse> lisForPage(
        ListServiceRequest request);

    @SelectProvider(type = ServiceSqlProvider.class, method = "list")
    @ResultType(value = ServiceResponse.class) List<ServiceResponse> list(ServiceRequest request);
}